<template>
    <div class="loading" v-show="flag">loading...</div>
</template>

<script>
export default {
    name: 'loading',
    props: ['flag'],
    watch: {
        'flag':function(newVal,oldVal){
            // console.log(newVal,oldVal)
        }
    }
}
</script>

<style lang="scss" scoped>

</style>
